import request from '/@/utils/request';

const dragdesign_api = '/api-dragdesign';

/**
 * 获取WEB海报管理列表
 * @param params 
 */
export function getWebPosterList(params?: object){
    return request({
        url: dragdesign_api + '/poster/list',
        method: 'get',
        params: params
    })
}

/**
 * 获取WEB海报
 * @param params 
 */
export function getWebPoster(params?: object){
    return request({
        url: dragdesign_api + '/poster/info',
        method: 'get',
        params: params
    })
}

/** 新增WEB海报 */
export function addWebPoster(params? : object){
    return request({
        url: dragdesign_api + '/poster/add',
        method: 'post',
        data: params
    });
}

/** 修改WEB海报 */
export function editWebPoster(params?: object) {
    return request({
        url: dragdesign_api + '/poster/edit',
        method: 'post',
        data: params
    });
}

/** 删除WEB海报 */
export function delWebPoster(params?: object){
    return request({
        url: dragdesign_api + '/poster/remove',
        method: 'post',
        data: params
    });
}
